package com.tgy.admin.Service;

import com.tgy.dTree.Dtree;
import com.tgy.page.PageQuery;
import com.tgy.pojo.SysPermission;
import com.tgy.result.GraceJSONResult;
import com.tgy.result.LayuiTableResult;

import java.util.List;

/**
 * @author tianguiyin
 * @version 1.0
 * @date 2022/6/21 21:04
 *
 * 后台权限业务接口
 */
public interface PermissionService {

    LayuiTableResult getSysPermissionList(SysPermission bo, PageQuery pageQuery);

    GraceJSONResult updateStatus(String id, Integer status);

    GraceJSONResult addSysPermission(SysPermission sysPermission);

    GraceJSONResult updateSysPermission(SysPermission sysPermission);

    GraceJSONResult delSysPermission(String id);

    GraceJSONResult delSysPermissionIds(List<String> ids);

    GraceJSONResult getSysPermissionById(String id);

    Dtree getSysPermission();

}
